<template>
  <div class="wa-top-share wa-card">
    <h2 class="wa-m0">分享文件排行</h2>
    <el-table :data="data" style="width: 100%;margin-top: 10px;">
      <el-table-column prop="filename" label="文件名称" width="180"/>
      <el-table-column prop="user" label="分享人" width="180"/>
      <el-table-column prop="views" label="浏览次数" width="180"/>
      <el-table-column prop="date" label="创建时间" width="180"/>
      <el-table-column prop="filePath" label="物理路径"/>
    </el-table>
  </div>
</template>

<script setup>
import {defineProps} from "vue";

defineProps({
  data: {
    type: Array,
    required: true
  }
})
</script>

<style lang="less" scoped>
.wa-top-share {
  margin-right: 20px;
  padding: 20px;
  background-color: #fff;
  height: 350px;
}
</style>